package org.moflon.moca.text.unparser;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

import org.antlr.stringtemplate.StringTemplateGroup;
import org.antlr.stringtemplate.language.DefaultTemplateLexer;

public class HtmlUnparserAdapter extends TextUnparserAdapter {

	@Override
	public boolean canUnparseFile(String fileName) {
		return fileName.endsWith(".html");
	}
	
	@Override
	protected StringTemplateGroup getStringTemplateGroup()
			throws FileNotFoundException {
		  return new StringTemplateGroup(new FileReader(new File("./templates/board-html.stg")), DefaultTemplateLexer.class);
	}
}
